EclipseRCP 퍼스펙티브 다루기(EclipseRCP perspective handling)[퍼스펙티브,perspective,이클립스 RCP,eclipse RCP]

이미지출처 : www.mobilefish.com

EclipseRCP 퍼스펙티브 다루기(EclipseRCP perspective handling)






등록된 퍼스펙티브 배열 받아오기 (Getting registered perspective array)

IPerspectiveRegistry perspectiveRegistry = window.getWorkbench().getPerspectiveRegistry();
IPerspectiveDescriptor[] perspectiveDescriptors = perspectiveRegistry.getPerspectives();


현재의 퍼스팩티브 받아오기 (Getting current perspective)
WorkbenchWindow.getActivePage().getPerspective();


퍼스펙티브 전환하기 (Changing perspective)
WorkbenchWindow.getActivePage().setPerspective(IPerspectiveDescriptor perspective);